// JavaScript Document
function fbs_click(valor){
var WEB = 'http://www.c-malaga.com/'
u=location.href;t=document.title;window.open(
'http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer',
'toolbar=0,status=0,width=626,height=436');
return false;
}
function megusta(id,url){
var WEB = 'http://www.c-malaga.com/'
u=(url != '') ? WEB+''+url : location.href;
var str = '<iframe src="http://www.facebook.com/plugins/like?href='+u+'&amp;locale=es_ES&amp;layout=button_count&amp;show_faces=true&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" style="border:none;width:106px;height:22px"></iframe>'
document.getElementById(id).innerHTML = str
}
function enviaramigo(id,url){
var WEB = 'http://www.c-malaga.com/'
u=(url != '') ? WEB+''+url : location.href;
var str = '<a href="enviar-amigo.php?pag='+encodeURIComponent(u)+'" rel="enviarAmigo" class="highslide" onclick="return hs.htmlExpand(this, { objectType: \'iframe\', width: 600,height: 348, dimmingOpacity:0.5, allowSizeReduction:false} )"><img src="images/email.png" border="0" width="14" height="14" alt="email" /></a>'
document.getElementById(id).innerHTML = str
}
function enviaramigoinicio(id,url){
var WEB = 'http://www.c-malaga.com/'
u=(url != '') ? WEB+''+url : location.href;
var str = '<a href="enviar-amigo.php?pag='+encodeURIComponent(u)+'" rel="enviarAmigo" class="highslide" onclick="return hs.htmlExpand(this, { objectType: \'iframe\', width: 600,height: 348, dimmingOpacity:0.5, objectLoadTime : \'after\', allowSizeReduction:false} )"><img src="images/compartir_amigo_icon.jpg" width="22" height="20" alt="Enviar Amigo" /></a>'
document.getElementById(id).innerHTML = str
}
function fbs_click_s(valor){
u=location.href;t=document.title;window.open(
'http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+valor+'&t='+encodeURIComponent(t),'sharer',
'toolbar=0,status=0,width=626,height=436');
return false;
}
function open_twitter(){
titulo=document.title;
window.open("http://www.twitter.com/intent/tweet?text=A+mi+me+gusta+"+titulo.replace(/ /g,"+",document.title)+"&url="+document.location.href,"Twitter","toolbar=0, status=0, width=550, height=420");
}
function open_twitter_s(valor1,valor2){
titulo=document.title;
window.open("http://www.twitter.com/intent/tweet?text=A+mi+me+gusta+"+titulo.replace(/ /g,"+",document.title)+valor1+"&url="+document.location.href+valor2,"Twitter","toolbar=0, status=0, width=550, height=420");
}